package com.listen.model;

import java.io.Serializable;
import java.util.Date;

public class User implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 姓名
     */
    private String name;
    
    private String rvCodeJson;

    /**
     * 身份证号
     */
    private String code;

    /**
     * 
     */
    private String zyName;

    /**
     * 所属人
     */
    private String owner;

    /**
     * 专业，八大员(10,11,12,13,14,2,3,4,5,6,70,71,72,73,74),三类(初培A/延期B),建造师(选修C/必修D)
     */
    private String zy;

    /**
     * 总课数
     */
    private Integer allNum;

    /**
     * 当前在听课数(记录状态)
     */
    private Integer nowNum = 0;

    /**
     * 当日听课数(1天8节)
     */
    private Integer todayNum;

    /**
     * 当前状态(1听课中，2已听完，3完成)
     */
    private Integer status;

    /**
     * 公司名称
     */
    private String companyName;

    /**
     * 创建时间
     */
    private Date createTm;

    /**
     * 听课大类(1八大员，2三类，3建造师)
     */
    private Integer type;

    /**
     * 最后一次更新时间
     */
    private Date updateTm;

    /**
     * 密码
     */
    private String password;
    
    private String ip;
    
    private String address;
    
    private String index;
    
    private String cookie;

    private String ids;
    
    private String referer;
    
    //验证码
    private String picCode;
    
    private String location;
    
    private boolean finished = false;
    
    private static final long serialVersionUID = 1L;

    public String getReferer() {
		return referer;
	}

	public String getRvCodeJson() {
		return rvCodeJson;
	}

	public void setRvCodeJson(String rvCodeJson) {
		this.rvCodeJson = rvCodeJson;
	}

	public void setReferer(String referer) {
		this.referer = referer;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public String getZyName() {
        return zyName;
    }

    public void setZyName(String zyName) {
        this.zyName = zyName == null ? null : zyName.trim();
    }

    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner == null ? null : owner.trim();
    }

    public String getZy() {
        return zy;
    }

    public void setZy(String zy) {
        this.zy = zy == null ? null : zy.trim();
    }

    public Integer getAllNum() {
        return allNum;
    }

    public void setAllNum(Integer allNum) {
        this.allNum = allNum;
    }

    public Integer getNowNum() {
        return nowNum;
    }

    public void setNowNum(Integer nowNum) {
        this.nowNum = nowNum;
    }

    public Integer getTodayNum() {
        return todayNum;
    }

    public void setTodayNum(Integer todayNum) {
        this.todayNum = todayNum;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName == null ? null : companyName.trim();
    }

    public Date getCreateTm() {
        return createTm;
    }

    public void setCreateTm(Date createTm) {
        this.createTm = createTm;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Date getUpdateTm() {
        return updateTm;
    }

    public void setUpdateTm(Date updateTm) {
        this.updateTm = updateTm;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getIndex() {
		return index;
	}

	public void setIndex(String index) {
		this.index = index;
	}

	public String getCookie() {
		return cookie;
	}

	public void setCookie(String cookie) {
		this.cookie = cookie;
	}

	public String getIds() {
		return ids;
	}

	public void setIds(String ids) {
		this.ids = ids;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getPicCode() {
		return picCode;
	}

	public void setPicCode(String picCode) {
		this.picCode = picCode;
	}

	public boolean isFinished() {
		return finished;
	}

	public void setFinished(boolean finished) {
		this.finished = finished;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	@Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", code=").append(code);
        sb.append(", zyName=").append(zyName);
        sb.append(", owner=").append(owner);
        sb.append(", zy=").append(zy);
        sb.append(", allNum=").append(allNum);
        sb.append(", nowNum=").append(nowNum);
        sb.append(", todayNum=").append(todayNum);
        sb.append(", status=").append(status);
        sb.append(", companyName=").append(companyName);
        sb.append(", createTm=").append(createTm);
        sb.append(", type=").append(type);
        sb.append(", updateTm=").append(updateTm);
        sb.append(", password=").append(password);
        sb.append("]");
        return sb.toString();
    }
}